package com.ssm.serviceImpl;

import com.ssm.mapper.UserMapper;
import com.ssm.po.User;
import com.ssm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Mars-Hasee on 2017/8/6.
 */
@Service
public class UserServiceImpl implements UserService {

  @Autowired
  private  UserMapper userMapper;

    @Override
    public User findone(Integer id) {
      return   userMapper.selectByPrimaryKey(id);
    }
}
